/**
 * @TickTest.as
 * 
 * @author sodaChen mail:asframe@qq.com
 * @version 1.0
 * <br>Copyright (C), 2010-2015 asFrame.com
 * <br>This program is protected by copyright laws.
 * <br>Program Name:ASFrame
 * <br>Date:2016-5-9
 */
package
{
	import com.asframe.tick.ITick;
	import com.asframe.tick.Tick;
	
	import flash.display.Sprite;
	
	/**
	 * 心跳机制测试类
	 * @author sodaChen
	 * Date:2016-5-9
	 */
	public class TickTest extends Sprite implements ITick
	{
		public var tickCount:int;
		public var funCount:int;
		public function TickTest()
		{
			Tick.addFun(funTick);
			Tick.addTick(this);
		}
		
		private function funTick():void
		{
			funCount++;
			trace("fun:" + funCount);
		}
		
		public function tick():void
		{
			tickCount++;
			trace("tick:" + tickCount);
		}
	}
}